var title;
var favicon;

if (localStorage.customTitle)
	title = localStorage.customTitle;
else
	title = "Google";

if (localStorage.customFavicon)
	favicon = localStorage.customFavicon;
else
	favicon = "http://www.google.com/favicon.ico";

document.title = title;

newIcon = document.createElement("link");
newIcon.type = "image/icon";
newIcon.rel = "shortcut icon";
newIcon.href = favicon;
document.head.appendChild(newIcon);
